package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import net.wxxr.http.interfaces.IJsonParser;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class PmListBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5855579052016840847L;
	private ArrayList<PmBean>  list;
	private int current_actor_id ;
	private int next_cursor;
	private int total_number;
	private boolean is_blocked ;
	private UserActorBean target_actor ;
	private String error ;
	public String getError() {
		return error;
	}
	public UserActorBean getTarget_actor() {
		return target_actor;
	}
	public boolean isIs_blocked() {
		return is_blocked;
	}
	public void setIs_blocked(boolean is_blocked) {
		this.is_blocked = is_blocked;
	}
	public ArrayList<PmBean> getList() {
		return list;
	}
	public void setList(ArrayList<PmBean> list) {
		this.list = list;
	}
	public int getCurrent_actor_id() {
		return current_actor_id;
	}
	public void setCurrent_actor_id(int current_actor_id) {
		this.current_actor_id = current_actor_id;
	}
	public int getNext_cursor() {
		return next_cursor;
	}
	public void setNext_cursor(int next_cursor) {
		this.next_cursor = next_cursor;
	}
	public int getTotal_number() {
		return total_number;
	}
	public void setTotal_number(int total_number) {
		this.total_number = total_number;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, PmListBean.class);
		}
		return null;
	}

}
